Train
Training functions in PyCaret
compare_models
Example
# load dataset
from pycaret.datasets import get_data
diabetes = get_data('diabetes')
# init setup
from pycaret.classification import *
clf1 = setup(data = diabetes, target = 'Class variable')
# compare models
best = compare_models()
Change the sort order


Compare only a few models


Return more than one model


Set the budget time

Set the probability threshold

Disable cross-validation

Distributed training on a cluster

create_model
Example

Changing the fold param

Model library

Models with custom param


Access the scoring grid


Disable cross-validation

Return train score

Set the probability threshold


Train models in a loop


Train custom models


Write your own models

Last updated
Was this helpful?